package com.chinaisafe.user.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.chinaisafe.base.mybatisplus.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serial;

/**
 * SysUserDept
 * Description：用户部门关系实体类
 *
 * @author xuefu.shu
 * @date  2024-07-12 10:41:46
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("sys_user_dept")
@Schema(name = "SysUserDept", description = "用户部门关系")
public class SysUserDept extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "部门_id")
    @TableField("sys_dept_id")
    private Long sysDeptId;

    @Schema(description = "用户_id")
    @TableField("sys_user_id")
    private Long sysUserId;

    @Schema(description = "是否主部门")
    @TableField("main_dept")
    private Boolean mainDept;

    @Schema(description = "部门维度id")
    @TableField("dept_dimension_id")
    private Long deptDimensionId;

    @Schema(description = "部门维度名称")
    @TableField("dept_dimension_name")
    private String deptDimensionName;
}
